
<div class="bg-white shadow rounded-lg mb-4">
    <div class="flex flex-col">
        <ul>
            <li>
                <a href="/user/profile" class="flex px-4 py-2 hover:bg-gray-900 hover:text-white text-sm {{if eq "profile" .sidebar}}bg-gray-900 text-white{{end}} ">个人信息 </a>
            </li>
            <li>
                <a href="/user/question" class="flex px-4 py-2 hover:bg-gray-900 hover:text-white text-sm {{if eq "question" .sidebar}}bg-gray-900 text-white{{end}}">我的提问</a>
            </li>
            <li>
                <a href="/user/answer" class="flex px-4 py-2 hover:bg-gray-900 hover:text-white text-sm {{if eq "answer" .sidebar}}bg-gray-900 text-white{{end}}">我的回答</a>
            </li>
        </ul>
    </div>
</div>
